package com.wanho.java157.CustomerManagement.service;


import com.wanho.java157.CustomerManagement.mapper.CustomerMapper;
import com.wanho.java157.CustomerManagement.po.Customer;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@ContextConfiguration({"classpath:spring/applicationContext-services.xml","classpath:spring/applicationContext-dataSource.xml","classpath:spring/applicationContext-daos.xml"})
public class CustomerServiceTest {
    @Autowired
    private CustomerService customerService;
    @Autowired
    private CustomerMapper customerMapper;
    @Test
    public void selectAll() {
       customerService.selectAll().forEach(System.out::println);

    }
}
